<%--
    Document   : index_demo2
    Created on : 27/08/2011, 01:20:38 AM
    Author     : John Mex
--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="Bean.Evaluacion"%>

<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="description" content="description"/>
<meta name="keywords" content="keywords"/>
<meta name="author" content="author"/>
<link rel="stylesheet" type="text/css" href="CSS\default.css" media="screen"/>
<title>Practical C:: Registro</title>
</head>

<body>

<div class="outer-container">

<div class="inner-container">

	<div class="header">

		<div class="title">

			<span class="sitename"><a href="index.jsp">Practical C</a></span>
			<div class="slogan">Aprendiendo a Programar en Lenguaje C</div>

		</div>

	</div>

	<div class="path">

			<a href="index.jsp">Home</a>

	</div>

	<div class="main">

		<div class="content">
                <h1> Resultados de Evaluaciones</h1>
                        <%
                        List<Evaluacion> evaluaciones = new ArrayList();
                        evaluaciones = (List<Evaluacion>)request.getAttribute("resultados");
                        if(evaluaciones.size()!=0){
                        out.write("<table>");
                        out.write("<tr>");
                            out.write("<td>");
                                out.write("Aciertos Drag&Drop");
                            out.write("</td>");
                            out.write("<td>");
                                out.write("Aciertos Sintaxsis");
                            out.write("</td>");
                            out.write("<td>");
                                out.write("Aciertos Preguntas");
                            out.write("</td>");
                            out.write("<td>");
                                out.write("Calificacion");
                            out.write("</td>");
                        out.write("</tr>");
                            for(Evaluacion evaluacion : evaluaciones){
                                out.write("<tr><td>");
                                out.write(evaluacion.getNumAcDrag());
                                out.write("</td><td>");
                                out.write(evaluacion.getNumAcSin());
                                out.write("</td><td>");
                                out.write(evaluacion.getNumAcPreg());
                                out.write("</td><td>");
                                out.write(String.valueOf(evaluacion.getCalificacion()));
                                out.write("</td></tr>");
                            }
                            out.write("</table>");
                        }
                            else
                                out.write("<h2>No existen evaluaciones</h2>");
                        %>

	</div>
</div>
	<div class="footer">

		<span class="left">
			&copy; 2011 <a href="index.jsp"> PracticalC.com </a>
		</span>

		<span class="right"><a href=""> DreamTeam Software Development</a> </span>

		<div class="clearer"></div>

	</div>
</div>

</div>

</body>

</html>
